package com.whyt.oauth.provider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ASUS
 */
@RestController
public class ProviderController
{
    @Value("${test}")
    private String test;

    @GetMapping("/actuator/health")
    public String health()
    {
        return "SUCCESS";
    }

    @GetMapping("/sayHello")
    public String sayHello(String name)
    {
        return "hello, " + name;
    }

    @GetMapping("test")
    public String test()
    {
        return test;
    }
}
